Repository navigation
feat(neutron): add reservation-aware quota monitoring and project identity - #6
Open
davidhulick wants to merge 2 commits into
Open
davidhulick wants to merge 2 commits into
davidhulick wants to merge 2 commits into
Conversation
Signed-off-by: David Hulick <dave.hulick@gmail.com>
Signed-off-by: David Hulick <dave.hulick@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Improve Neutron quota monitoring by incorporating active reservations, correcting project ownership and malformed-record handling, and enriching quota metrics with Keystone project identity.
This change extends the existing Neutron quota metrics without introducing new resource families or changing their units.
The implementation uses the current raw reservation query API from [openstackdb PR #4](samaritanark/openstackdb#4).
Changes
Neutron quota accounting
Reservation expiration
Project identity and metadata
tenant_idanddomain_idlabels alongside the existingtenantandtypelabels.Metric compatibility: Adding identity labels changes the label sets of existing Neutron quota series. Dashboards, recording rules, and alerts selecting these metrics may require updates.
Configuration and health
openstack_neutron_quota_upto report quota collection health independently of inventory health.openstack_neutron_quota_skipped_recordsto expose malformed accounting records.Native integration testing
Added
TestIntegration_E2E_NeutronReservationsto exercise actual reservation accounting through MariaDB and the exporter's HTTP metrics endpoint.The test covers active and expired reservations, all nine resource families, malformed accounting, quota collection failures, and recovery.
The test and fixtures were independently reviewed, but native MariaDB integration and E2E execution remain outstanding because Docker was unavailable in the validation environment.
Dependencies
This contribution is stacked on the Octavia exporter contribution in
contrib/octavia-quotas-2b3.It requires the pending public
openstackdbcontributions:Validation used a temporary workspace combining these library contributions.
The committed module currently references
openstackdb v0.2.1, which lacks the required APIs. A dependency update and standalone CI validation will be necessary when compatible upstream revisions become available.Known limitations and follow-up work
Scope
This PR is limited to Neutron quota monitoring, active reservation accounting, project identity resolution, configuration, and related tests.
It does not include unrelated Cinder, Manila, or Nova changes.